<?php

/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2023-06-08 09:08:35
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2023-06-08 09:11:29
 */


/**
 * This file is part of EasySwoole.
 *
 * @link https://www.easyswoole.com
 * @document https://www.easyswoole.com
 * @contact https://www.easyswoole.com/Preface/contact.html
 * @license https://github.com/easy-swoole/easyswoole/blob/3.x/LICENSE
 */

namespace Common\Event;


use Common\Component\Singleton;
use Hyperf\Event\Annotation\Listener;
use Hyperf\Event\Contract\ListenerInterface;

#[Listener]
class Notify
{


    public int $project_id = 0;

    public int $device_status = 0;

    /**
     * @var string
     */
    private string $event_name;

    public function __construct(array $params = [])
    {
        $this->event_name = $params['event_name']??'default';
        $this->project_id = $params['project_id']??0;
        $this->device_status = $params['device_status']??0;
    }
}
